import java.util.Arrays;
import java.util.List;

class Solution {
    public void merge(int[] nums1, int m, int[] nums2, int n) {
        int[] arr = nums1;
        nums1 = Arrays.copyOf(nums1 , m + n);
        int f = 0;
        int s = 0;
        for(int i = 0; i< m + n;i++){
            if(arr[f] > nums2[s]){
                nums1[i] = nums2[s];
                s++;
            }else{
                nums1[i] = arr[f];
                f++;
            }
        }
    }
}

public class Test extends Sloution{
    public static void main(String[] args) {
        int a = 5;
        Sloution sloution = new Sloution();
        List<List<Integer>> list = sloution.generate(5);
        System.out.println(Arrays.toString(list.toArray()));
        int[] arr = new int[]{};
        int c = arr.length ;
        
    }

}
